package com.hopu.v1.vo;

import com.baomidou.mybatisplus.annotation.TableField;
import com.hopu.v1.pojo.common.Update;
import jakarta.validation.constraints.NotNull;
import lombok.Data;
import org.hibernate.validator.constraints.Length;

import java.io.Serializable;

@Data
public class CorrectingVo implements Serializable{
    @NotNull(message = "判断不能为空")
    private Integer judgment;

    @TableField(value = "teacher_comments")
    @Length(message = "评论字数超出限制", max = 255, groups = Update.class)
    @NotNull(message = "评语不能为空",groups = Update.class)
    private String teacherComments;

    private Integer homeworkId;

    private String studentId;
}
